package com.example.logintest.service.impl;

import com.example.logintest.bean.User;
import com.example.logintest.dao.LoginDao;
import com.example.logintest.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "Login")
public class LoginImpl implements LoginService {
    @Autowired
    LoginDao loginDao;
    @Override
    public User login(String username) {
        return loginDao.login(username);
    }
}
